package edu.sctu.renpingan.day20150628alltest;

/**
 * Created by Administrator on 2015/6/28.
 */
public class JudgePrice {
    public void getGoodsNubmer(Appbean appbean){
        int thanhundrednumber = 0;
        int lessthanhundrednumber = 0;

        for (int i = 0; i < appbean.list.size(); i++) {
          double price = Double.valueOf(appbean.list.get(i).goods_price).doubleValue();


            if (price>100){
                thanhundrednumber++;
            }else if(price<=100){
                lessthanhundrednumber++;
            }

        }
        System.out.println("大于一百的商品数："+thanhundrednumber);
        System.out.println("小于一百的商品数："+lessthanhundrednumber);
    }
}
